<template>
	<view>
		<u-popup v-model="show" 
			mode="bottom" 
			:mask-close-able="false" 
			border-radius="30" 
			closeable 
			close-icon-size='36'
		>
			<view class="popup-container">
				<view>
					<image class="icon" src="/static/wxImage/icon-weixin.png" mode="aspectFill"></image>
					<text>微信好友</text>
				</view>
				<view @tap="showFaceCode">
					<image class="icon" src="/static/wxImage/icon-face2face.png" mode="aspectFill"></image>
					<text>面对面</text>
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		name:'invite-ways',
		data() {
			return {
				show:false,
				src:'',
				canTap: false
			}
		},
		mounted() {
			setTimeout(() => {
				this.canTap = true;
			},1500)
		},
		methods:{
		
			open() {
				this.show = true;
			},
			close() {
				if(this.canTap) {
					this.show = false;
				};
			},
			showFaceCode() {
				this.$emit('showFaceCode');
			}
		}
	}
</script>

<style lang="scss">
	.popup-container {
		width: 100vw;
		height: 335rpx;
		background-color: #FFFFFF;
		display: flex;
		align-items: center;
		justify-content: space-evenly;
		
		
		.icon {
			width: 90rpx;
			height: 90rpx;
			flex-shrink: 0;
			margin-bottom: 46rpx;
		}
		
		>view {
			display: flex;
			flex-direction: column;
			align-items: center;
		}
		text {
			color: #666666;
			font-size: 32rpx;
		}
	}
</style>
